﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginControl.ascx.cs"
    Inherits="Marbles.CMS.Controls.LoginControl" %>
<asp:LoginView ID="LoginViewMain" runat="server" OnViewChanged="LoginViewMain_ViewChanged" >
    <AnonymousTemplate>
        <asp:Login ID="LoginControlMain" runat="server" OnLoggedIn="LoginViewMain_LoggedIn" CreateUserUrl="~/Account/Register.aspx"  CreateUserText="Register" >
        </asp:Login>
    </AnonymousTemplate>
    <LoggedInTemplate>
        Logged in As
        <%=Page.User.Identity.Name %><br />
        <br />        
        <asp:Button ID="btnLogout" CausesValidation="false" runat="server" Text="Logout" OnClick="LoginViewMain_Logout"  ToolTip="Logout" />
        <asp:Button id="btnAdmin" CausesValidation="false" runat="server" Text="Admin" ToolTip="Launch the Administrator Console" OnClick="btnAdmin_Click"  Visible="false" />
    </LoggedInTemplate>
</asp:LoginView>